<?php
use app\utils\BaseUtils;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $user \app\models\User */

\app\assets\MuiImageAsset::register($this);

?>
<div class="company-infomation mui-content-padded">
    <div class="title">
        <h4>基本信息</h4>
    </div>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>

            <td><strong>姓　　名：</strong><?= Html::encode($user->uname); ?></td>
        </tr>
        <tr>

            <td><strong>性　　别：</strong><?= $user->profile->_statusName(\app\models\User::$sexLabels, 'sex'); ?></td>
        </tr>
        <tr>

            <td><strong>学　　校：</strong><?= $user->profile->school; ?></td>
        </tr>
        <tr>

            <td><strong>专　　业：</strong><?= $user->profile->major; ?></td>
        </tr>
        <tr>

            <td><strong>入学时间：</strong><?= date('Y-m-d', $user->profile->school_time); ?></td>
        </tr>
        <tr>

            <td><strong>手　　机：</strong><?= $user->phone; ?></td>
        </tr>
        <tr>

            <td><strong>微　　信：</strong><?= $user->profile->wechat; ?></td>
        </tr>
        <tr>

            <td><strong>电子邮箱：</strong><?= $user->profile->email; ?></td>
        </tr>
        <tr>

            <td><strong>自我介绍：</strong>
                <?= Html::encode($user->profile->experience1); ?>
            </td>
        </tr>
    </table>
    <hr/>
    <div class="title">
        <h4>个人经历</h4>
    </div>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>

            <td><strong>赛事经历：</strong>
                <?= Html::encode($user->profile->experience2); ?>
            </td>
        </tr>

        <tr>
            <td><strong>志愿经历：</strong>
                <?= Html::encode($user->profile->experience3); ?>
            </td>
        </tr>
        <tr>
            <td><strong>兼职经历：</strong>
                <?= Html::encode($user->profile->experience4); ?>
            </td>
        </tr>
        <tr>
            <td><strong>实习经历：</strong>
                <?= Html::encode($user->profile->experience5); ?>
            </td>
        </tr>
        <tr>
            <th>证书展示：</th>
            <td>
                <?= BaseUtils::arrayToImage($user->profile->getThumbsByFiled('user_images')); ?>
            </td>
        </tr>
    </table>

    <button type="button" data-href="<?= Url::to(['user/profile']); ?>" class="mui-btn mui-btn-blue btn-edit">编辑</button>

</div>
